package com.yaorange.teaching.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author coach tam
 * @email 327395128@qq.com
 * @values 坚持灵活 灵活坚持
 * @since 2024/11/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PreviewTeachingPlanBo {
    @NotEmpty(message = "开始日期不能为空")
    private String beginDate;
    @NotEmpty(message = "班级不能为空")
    private String  className;
    @NotNull(message = "课程不能为空")
    private Long  courseId;
    @NotNull(message = "阶段不能为空")
    @Range(min = 1, max = 2, message = "阶段只能为1,2")
    private Integer stage;

    private String type;

    private String date;
}
